31f20bfbdbd5d4c469c2e62476e5f90e1ace8cd1,src/org/openstreetmap/josm/actions/mapmode/SelectAction.java,SelectAction,mouseReleased,#MouseEvent#,429

Before Change


            virtualNode = null;

            if (!didMove) {
                Collection<OsmPrimitive> c = Main.map.mapView.getNearestCollection(e.getPoint(), OsmPrimitive.isSelectablePredicate);
                if (!c.isEmpty() && alt) {
                    if (c.iterator().next() instanceof Node) {
                        // consider all nearest nodes
                        c = new ArrayList<OsmPrimitive>(Main.map.mapView.getNearestNodes(e.getPoint(), OsmPrimitive.isSelectablePredicate));
                    } else {
                        // consider all nearest primitives (should be only ways at this point..)
                        c = Main.map.mapView.getAllNearest(e.getPoint(), OsmPrimitive.isSelectablePredicate);
                    }
                }
                selectPrims(c, shift, ctrl, true, false);

                // If the user double-clicked a node, change to draw mode
                c = getCurrentDataSet().getSelected();

After Change



        if (mode == Mode.move) {
            boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0;
            boolean shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0;
            if (!didMove) {
                selectPrims(
                        Main.map.mapView.getNearestCollection(e.getPoint(), OsmPrimitive.isSelectablePredicate),
                        shift, ctrl, true, false);

                // If the user double-clicked a node, change to draw mode
                List<OsmPrimitive> sel = new ArrayList<OsmPrimitive>(getCurrentDataSet().getSelected());